﻿using CatUtils.Utils.Currency;
using CatUtils.Utils.Currency.IoUtils;
using CatUtils.Utils.Currency.TextUtils;
using CatUtils.Utils.Helper;
using RabbitDownload.Helper;
using RabbitDownload.Helper.Currency;

using System;
using System.Windows.Forms;

namespace RabbitDownload.WebSite.Pixiv.Successive
{
    public partial class SuccessiveControl : UserControl
    {
        public SuccessiveControl()
        {
            InitializeComponent();
            InitView();
        }

        private void InitView()
        {
            FloderHelper.FloderExits(StaticValue.BinPath, true);
            textboxOnlyCount1.Text = FileHelper.ReadAllText(SuccessiveHelper.TempProgress);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            SuccessiveHelper.StartScanner(TextHelper.StringToInt(textboxOnlyCount1.Text), TextHelper.StringToInt(textboxOnlyCount2.Text), TextHelper.StringToInt(textboxOnlyCount3.Text));
        }
    }
}